/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module Fields.h - Header file for the Transaction Flow functions |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/fields.h $ 
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/

#ifndef VSFIELDS_H
#define VSFIELDS_H

#include <transact.h>

extern int inGetReceiptTemplate(TRANSACTION_OBJECT *pobTran);

int inComputeAndDispTotal(TRANSACTION_OBJECT *pobTran);
int getnewamt(TRANSACTION_OBJECT *pobTran);
int inLoadDefaultCurrency (TRANSACTION_OBJECT *pobTran);
int inLoadDefaultHost (int inHostIndex);
int inSelectAndLoadHost (TRANSACTION_OBJECT *pobTran);
int inAVS(TRANSACTION_OBJECT *pobTran);
int inCheckSettleFlag(TRANSACTION_OBJECT *pobTran);
int inChkMustSettleFlag(TRANSACTION_OBJECT *pobTran);
int inCreditPredial(TRANSACTION_OBJECT *pobTran);
int inDebitPredial(TRANSACTION_OBJECT *pobTran);
int inDupCheck(TRANSACTION_OBJECT *pobTran);
int inSavDupCheck(TRANSACTION_OBJECT *pobTran);
int inScrollOff(TRANSACTION_OBJECT *pobTran);
int inScrollOn(TRANSACTION_OBJECT *pobTran);
int inScrollNextLineOn(TRANSACTION_OBJECT *pobTran);

int inGetAuthCode (TRANSACTION_OBJECT *pobTran);
int inGetAdjustAmount (TRANSACTION_OBJECT *pobTran);
int inGetCloseTabAmount (TRANSACTION_OBJECT *pobTran);
int inGetBaseAmount (TRANSACTION_OBJECT *pobTran);
int inGetTotalAmount (TRANSACTION_OBJECT *pobTran);
int inGetBatchNumber (TRANSACTION_OBJECT *pobTran);
int inGetCashBack (TRANSACTION_OBJECT *pobTran);
int inGetConfirmation (TRANSACTION_OBJECT *pobTran);
int inGetECRInvoiceNum (TRANSACTION_OBJECT *pobTran);
int inGetHostNum (TRANSACTION_OBJECT *pobTran);
int inGetCurrency (TRANSACTION_OBJECT *pobTran);
int inGetIndBatchHostNum (TRANSACTION_OBJECT *pobTran);
int inGetCkHostNum (TRANSACTION_OBJECT *pobTran);
int inGetHFTHostNum (TRANSACTION_OBJECT *pobTran);
int inGetInvoiceNumber (TRANSACTION_OBJECT *pobTran);
int inGetLastFourAcct (TRANSACTION_OBJECT *pobTran);
int inGetSettDate (TRANSACTION_OBJECT *pobTran);
int inGetSettAll (TRANSACTION_OBJECT *pobTran);
int inGetRoomNumber(TRANSACTION_OBJECT *pobTran);
int inGetInvNum(TRANSACTION_OBJECT *pobTran);
int inGetOrigTransDate (TRANSACTION_OBJECT *pobTran);
int inGetCustNumber(TRANSACTION_OBJECT *pobTran);
int inSetCloseTabSameCardFlag(TRANSACTION_OBJECT *pobTran);
int inDisplayResponse(TRANSACTION_OBJECT *pobTran);
int FIELDS_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
int FIELDS2_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);
int inIncInvNum (void);
int inResetInvNum (void);
int inLoadHostFromName (TRANSACTION_OBJECT *pobTran, char *pszMyHostName);
int inValidateDockStatus(TRANSACTION_OBJECT *pobTran);
int inGetWebMenu (TRANSACTION_OBJECT *pobTran);
int inSelectWebPhone (TRANSACTION_OBJECT *pobTran, int inCardAllowed);
int inSelectWebOffline (TRANSACTION_OBJECT *pobTran, int inCardAllowed);
int inSelectWebRefund (TRANSACTION_OBJECT *pobTran, int inCardAllowed);
int inGetECI (TRANSACTION_OBJECT *pobTran);
VS_BOOL fExcessiveTab(TRANSACTION_OBJECT *pobTran, long lnTabAmt);

#endif

